<template>
	<view class="own-bank-card-manage" >
		<view class="card-item" v-for="(item,index) in cards" :key="index">
			<view class="card-l">
				<view class="card-l-t">
					{{item.name}}
					{{item.bankName+"   "+item.cardID}}
				</view>
				<text>添加时间:{{item.time}}</text>
			</view>
			<view class="card-r">
				删除
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				cards:[{
					name:"张三",
					bankName:"中国工商银行",
					cardID:"****4398",
					time:"2018-12-12 10:00"
				},
				{
					name:"张三",
					bankName:"中国工商银行",
					cardID:"****4398",
					time:"2018-12-12 10:00"
				}]
			}
		},
		methods:{
			
		},
		onNavigationBarButtonTap(e) {
			console.log("添加银行卡");
		}
	}
</script>

<style lang="scss">
	.own-bank-card-manage{
		width: 100%;
		background-color: rgba(242, 242, 242, 1);
		
		.card-item{
			background-color: white;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			
			padding: 15upx 15px;
			margin-top: 1px;
		}
		
		.card-l {
			display: flex;
			flex-direction: column;
		}
		.card-r {
			width: 10%;
		}
	}
</style>
